import {createRouter, createWebHistory,RouteRecordRaw} from 'vue-router'

const routes: Array<RouteRecordRaw> = [
    {
        path: '/',

        component: () => import('../components/HelloWorld.vue')
    },
    {
        path: '/Reatulst',

        component: () => import('../views/Reatulst.vue')
    },
    {
        path: '/Login',

        component: () => import('../views/Login.vue')
    },
    {
        path: '/UsersInfor/:uid',
        name:"UsersInfor",
        component: () => import('../views/UsersInfor.vue')
    },
    {
        path: '/InvestADD',
        name:"InvestADD",
        component: () => import('../Invest/InvestADD.vue')
    },
    {
        path: '/Show',
        name:"Show",
        component: () => import('../Invest/Show.vue')
    }
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router